package de.mmis.helferlein.demo;

public class MultiplierClient {

	private Multiplier multiplier;

	public void setMultiplier(Multiplier multiplier) {
		this.multiplier = multiplier;
	}

	public int use(int value) {
		if (multiplier == null)
			throw new IllegalStateException("there is no multiplier");
		return multiplier.multiply(value);
	}
}
